package creation.factory.simaple2;

public class OrderPizza {
    Pizza orderPizza(String name){
        Pizza pizza = SimpleFactory.getPizza(name);
        if(pizza != null){
            pizza.prepare();
            pizza.baker();
            pizza.cut();
            pizza.box();
        }
        return pizza;
    }
}
